package com.tyqx.hashchainbiz.service.impl;

import com.tyqx.hashchainbean.module.WxUserInfo;
import com.tyqx.hashchainbiz.service.WxUserInfoService;
import com.tyqx.hashchaindao.mapper.WxUserInfoMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: hashchain-spring
 * @description:
 * @author: Mr.Li
 * @create: 2020-10-30 14:20
 **/

@Service("wxUserInfoService")
public class WxUserInfoServiceImpl implements WxUserInfoService {

    @Resource
    private WxUserInfoMapper wxUserInfoMapper;

    @Override
    public int insertWxUserInfo(WxUserInfo wxUserInfo) {
        return wxUserInfoMapper.insertWxUserInfo(wxUserInfo);
    }

    @Override
    public List<WxUserInfo> queryWxUserInfo() {
        return wxUserInfoMapper.queryWxUserInfo();
    }

    @Override
    public WxUserInfo queryWxUserInfoByOpenId(String openId) {
        return wxUserInfoMapper.queryWxUserInfoByOpenId(openId);
    }

    @Override
    public int updateStatus(Integer status, String openId) {
        return wxUserInfoMapper.updateStatus(status,openId);
    }
}
